package cn.milai.amtc;

import cn.milai.amtc.step6.AudioManager;
import javazoom.jl.decoder.JavaLayerException;

public class Main {

	public static void play(Audio audio) {
		AudioManager.add(audio);
	}

	public static void main(String[] args) throws InterruptedException, JavaLayerException {
		new GameForm();
		final int MAX = 100;
		int cnt = 0;
		while (true) {
			cnt = (cnt + 1) % MAX;
			if (cnt == 0) {
				System.out.println(System.currentTimeMillis());
			}
			Thread.sleep(10);
			AudioManager.play();
		}
	}
}
